package org.zht.dormpro.dorm.cacher.service;

import java.util.Map;

public interface IRedisTemplateService {

    Boolean set(String key, Object value);

    <T> T get(String key, Class<T> clazz);

    Boolean hSet(String key, String field, Object value);

    <T> T hGet(String key, String field, Class<T> clazz);

    Long hLen(String key);

    Long hDel(String key, String field);

    <K, V> Map<K, V> hGetAll(String key, Class<K> kClazz, Class<V> vClazz);

    Boolean doCallBack(RedisTemplateCallBack callBack);
}
